package com.top.mall.main.cart

import android.app.Activity
import android.content.Intent
import android.graphics.Color
import com.blankj.utilcode.util.BarUtils
import com.module.lemlin.owner.OwnerAbstractActivity
import com.top.mall.R

class CartActivity : OwnerAbstractActivity() {

    companion object {
        fun open(activity: Activity) {
            val intent = Intent(activity, CartActivity::class.java)
            activity.startActivity(intent)
        }
    }

    override val layoutResId: Int
        get() = R.layout.activity_cart

    override fun initView() {

        //设置状态栏颜色
        BarUtils.setStatusBarColor(this, Color.WHITE)

        supportFragmentManager.beginTransaction()
            .replace(R.id.frameCart, CartFragment.newInstance())
            .commit()
    }
}